Chart for WinRT > Chart Types > Pie Charts > Adding Connecting Lines to Prevent Pie Overlapping |
You can add connecting lines with the PlotElement.LabelLine Attached property like the following XAML code:
XAML Markup |
Copy Code
|
---|---|
<Chart:DataSeries.PointLabelTemplate> <DataTemplate> <Border BorderBrush="DarkGray" BorderThickness="1" Background="LightGray" Chart:PlotElement.LabelAlignment="Auto" Chart:PlotElement.LabelOffset="30,0"> <TextBlock Text="{Binding Value}" /> <Chart:PlotElement.LabelLine> <Line Stroke="LightGray" StrokeThickness="2" /> </Chart:PlotElement.LabelLine> </Border> </DataTemplate> </Chart:DataSeries.PointLabelTemplate> |